<div class="messages form">
<?php
	echo $form->create('Message',array('url'=>array('action'=>'send','controller'=>'messages','plugin'=>'messages',$recipientId,$recipientType,$parentId),'enctype'=>'multipart/form-data'));
	if(cr('Messages.allowSubject')==true)
		echo $form->input('subject');
	echo $form->input('body');
	if(cr('Messages.allowAttachments') ==true)
		echo $form->input('Attachment.name',array('type'=>"file",'label'=>'Attachment'));
	
	echo $form->end(__('Send'));
?>
</div>